
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.1导出成PDF · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2.导出成epub.html" />
    
    
    <link rel="prev" href="../4gitbookdao-chu.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../1gitbookan-zhuang-yu-shi-yong.html">
            
                <a href="../1gitbookan-zhuang-yu-shi-yong.html">
            
                    
                    1.gitbook安装与使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../gitbook安装与使用/1.简介.html">
            
                <a href="../gitbook安装与使用/1.简介.html">
            
                    
                    1.1简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../gitbook安装与使用/2.安装.html">
            
                <a href="../gitbook安装与使用/2.安装.html">
            
                    
                    1.2安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../gitbook安装与使用/3.使用.html">
            
                <a href="../gitbook安装与使用/3.使用.html">
            
                    
                    1.3使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../gitbook安装与使用/4.gitbook常用命令.html">
            
                <a href="../gitbook安装与使用/4.gitbook常用命令.html">
            
                    
                    1.4gitbook常用命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../2gitbookchang-yong-zhu-ti.html">
            
                <a href="../2gitbookchang-yong-zhu-ti.html">
            
                    
                    2.gitbook常用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../3pagefu-wu-ji-cheng.html">
            
                <a href="../3pagefu-wu-ji-cheng.html">
            
                    
                    3.page服务集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../page服务集成/1.集成前预处理.html">
            
                <a href="../page服务集成/1.集成前预处理.html">
            
                    
                    3.1集成前预处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../page服务集成/2.giteepages.html">
            
                <a href="../page服务集成/2.giteepages.html">
            
                    
                    3.2gitee pages
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../page服务集成/3.githubpages.html">
            
                <a href="../page服务集成/3.githubpages.html">
            
                    
                    3.3githup pages
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../4gitbookdao-chu.html">
            
                <a href="../4gitbookdao-chu.html">
            
                    
                    4.gitbook导出
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.1" data-path="1.导出成pdf.html">
            
                <a href="1.导出成pdf.html">
            
                    
                    4.1导出成PDF
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="2.导出成epub.html">
            
                <a href="2.导出成epub.html">
            
                    
                    4.2导出成epub
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../5shi-yong-gitbook-editor-bian-ji-gitbook.html">
            
                <a href="../5shi-yong-gitbook-editor-bian-ji-gitbook.html">
            
                    
                    5.使用gitbook editor编辑gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../参考地址.html">
            
                <a href="../参考地址.html">
            
                    
                    参考地址
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.1导出成PDF</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="41&#x5BFC;&#x51FA;&#x6210;pdf">4.1&#x5BFC;&#x51FA;&#x6210;PDF</h1>
<h2 id="1&#x5B89;&#x88C5;calibre">1.&#x5B89;&#x88C5;calibre</h2>
<p>&#x7531;&#x4E8E;gitbook&#x6253;&#x5305;&#x6210;pdf&#x65F6;&#xFF0C;&#x8C03;&#x7528;&#x7684;&#x662F;calibre&#x7684; ebook-convert&#x63D2;&#x4EF6;&#xFF0C;&#x6240;&#x4EE5;&#x9700;&#x8981;&#x5B89;&#x88C5;calibre&#x3002;</p>
<p><a href="https://calibre-ebook.com/download" target="_blank">calibre&#x5B98;&#x65B9;&#x4E0B;&#x8F7D;&#x8DEF;&#x5F84;</a></p>
<p>&#x4E0B;&#x8F7D;&#x5B8C;&#x6210;&#x540E;&#xFF0C;windows&#x76F4;&#x63A5;&#x5B89;&#x88C5;&#x5373;&#x53EF;&#x3002;</p>
<h2 id="2&#x5B89;&#x88C5;gitbook-pdf">2.&#x5B89;&#x88C5;gitbook-pdf</h2>
<pre><code class="lang-shell">npm install gitbook-pdf -g
</code></pre>
<p>&#x76F4;&#x63A5;&#x5B89;&#x88C5;&#x4F1A;&#x62A5;&#x9519;&#xFF0C;&#x9009;&#x62E9;&#x79BB;&#x7EBF;&#xFF0C;&#x8BBF;&#x95EE;<a href="https://phantomjs.org/download.html" target="_blank">https://phantomjs.org/download.html</a>&#x79BB;&#x7EBF;&#x4E0B;&#x8F7D;&#x76F8;&#x5173;&#x7684;&#x7248;&#x672C;&#xFF0C;&#x5E76;&#x914D;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#xFF0C;&#x8BE5;&#x8F6F;&#x4EF6;&#x5E94;&#x8BE5;&#x662F;&#x9875;&#x9762;&#x6293;&#x53D6;&#x7684;&#xFF0C;&#x5728;&#x8C03;&#x7528;ebook-convert&#x65F6;&#x5019;&#x9700;&#x8981;&#x7528;&#x5230;&#x3002;</p>
<h2 id="3&#x5BFC;&#x51FA;pdf">3.&#x5BFC;&#x51FA;pdf</h2>
<p>&#x5728;SUMMARY.md&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x6253;&#x5F00;&#x547D;&#x4EE4;&#x884C;,&#x7136;&#x540E;&#x6267;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code class="lang-shell">gitbook pdf
</code></pre>
<p>&#x7136;&#x540E;&#x5728;&#x8BE5;&#x76EE;&#x5F55;&#x4E0B;&#x5373;&#x53EF;&#x521B;&#x5EFA;&#x5BF9;&#x5E94;&#x7684;pdf&#xFF0C;&#x4E0D;&#x8FC7;&#x8FD9;&#x513F;&#x6709;&#x4E2A;bug&#xFF0C;&#x521B;&#x5EFA;&#x5B8C;&#x6210;&#x7684;pdf&#xFF0C;&#x4E66;&#x7B7E;&#x90E8;&#x5206;&#xFF0C;&#x5747;&#x662F;&#x8DF3;&#x8F6C;&#x5230;&#x9996;&#x9875;&#xFF0C;&#x76EE;&#x524D;&#x672C;&#x4EBA;&#x53EA;&#x80FD;&#x624B;&#x52A8;&#x4FEE;&#x6539;&#xFF0C;&#x5177;&#x4F53;&#x7684;&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#x8FD8;&#x4E0D;&#x77E5;&#x9053;...</p>
<h2 id="&#x53C2;&#x8003;&#x5730;&#x5740;">&#x53C2;&#x8003;&#x5730;&#x5740;</h2>
<p><a href="https://www.jianshu.com/p/156750eec820" target="_blank">1.&#x4F7F;&#x7528;Gitbook&#x521B;&#x5EFA;&#x6587;&#x6863;&#x5E76;&#x5BFC;&#x51FA;PDF</a>
<a href="https://blog.csdn.net/zl1zl2zl3/article/details/71123902?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase" target="_blank">2.Windows&#x4E0A;&#x4F7F;&#x7528;gitbook&#x5236;&#x4F5C;&#x7535;&#x5B50;&#x4E66;</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../4gitbookdao-chu.html" class="navigation navigation-prev " aria-label="Previous page: 4.gitbook导出">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="2.导出成epub.html" class="navigation navigation-next " aria-label="Next page: 4.2导出成epub">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.1导出成PDF","level":"1.5.1","depth":2,"next":{"title":"4.2导出成epub","level":"1.5.2","depth":2,"path":"gitbook导出/2.导出成epub.md","ref":"gitbook导出/2.导出成epub.md","articles":[]},"previous":{"title":"4.gitbook导出","level":"1.5","depth":1,"path":"4gitbookdao-chu.md","ref":"4gitbookdao-chu.md","articles":[{"title":"4.1导出成PDF","level":"1.5.1","depth":2,"path":"gitbook导出/1.导出成pdf.md","ref":"gitbook导出/1.导出成pdf.md","articles":[]},{"title":"4.2导出成epub","level":"1.5.2","depth":2,"path":"gitbook导出/2.导出成epub.md","ref":"gitbook导出/2.导出成epub.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"gitbook导出/1.导出成pdf.md","mtime":"2020-05-15T07:33:48.508Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-05-16T06:46:15.328Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

